package com.xm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
//区别
@TableName("user")
public class UserP {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField
    private String uuid;

    @TableField
    private String name;

    @TableField
    private BigDecimal height;

    @TableField
    private BigDecimal weight;

    @TableField
    private Integer age;

    @TableField
    private Boolean bool;

    @TableField
    private String signature;

    @TableField("delMark")
    private Integer delMark;

    @TableField("createTime")
    private Date createTime;

    private transient String createTimeStr;

    @TableField("updateTime")
    private Date updateTime;

    private transient String updateTimeStr;

    @TableField("long_field")
    private String longField;
}
